home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_098
/
thai
/
thai_font.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
668b
|
38 lines
#include "quiz.h"
extern APTR OpenLibrary ();
struct TextFont * OpenDiskFont ();
APTR DiskfontBase;
struct TextFont * thai_font;
struct TextAttr thai_textattr;
open_thai_font ()
{
DiskfontBase = OpenLibrary ( "diskfont.library" , 0L );
if ( DiskfontBase == NULL )
return ( FALSE );
thai_textattr.ta_Name = (UBYTE*) "Thai.font";
thai_textattr.ta_YSize = 22;
thai_textattr.ta_Style = 0;
thai_textattr.ta_Flags = 0;
thai_font = OpenDiskFont ( &thai_textattr );
if ( thai_font == NULL ) {
CloseLibrary ( DiskfontBase );
return ( FALSE );
}
return ( TRUE );
}
close_thai_font ()
{
CloseFont ( thai_font );
CloseLibrary ( DiskfontBase );
}